package com.fishleap.io;

import java.io.InputStream;

/**
 * @author zlg
 * @create 2020-04-21 21:31
 */
public class Resources {

    // 使用类加载器将配置文件转化为输入流,存储在内存中
    public static InputStream getResourceAsStream(String path) {
        return Resources.class.getClassLoader().getResourceAsStream(path);
    }

}
